#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s, code[8]={"0001", "10", "1110", "1111", "110", "01", "0000", "001"};//abcdefgh
	cin>>s;
	while(s != ""){
		for(int i = 1; i <= 4; i++){
			string t = s.substr(0, i);
			for(int j = 0; j < 8; j++){
				if(t == code[j]){
					cout<<char('a'+j);
					s = s.substr(i);
				}
			}
		}
	}
	return 0;
}
